package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 菜品管理对象 res_package_dish
 * 
 * @author ruoyi
 * @date 2025-06-02
 */
public class ResPackageDish extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 树id */
    private Long treeId;

    /** 关联id(包括套餐id、菜品分类id、菜品id) */
    @Excel(name = "关联id(包括套餐id、菜品分类id、菜品id)")
    private Long relationId;

    /** 树节点名称 */
    @Excel(name = "树节点名称")
    private String treeName;

    /** 父id */
    @Excel(name = "父id")
    private Long pId;

    /** 备用字段 */
    @Excel(name = "备用字段")
    private String field;

    private ResPackage resPackage;

    private ResDishCategory resDishCategory;

    private ResDish resDish;

    private ResInfo resInfo;

    public ResInfo getResInfo() {
        return resInfo;
    }

    public void setResInfo(ResInfo resInfo) {
        this.resInfo = resInfo;
    }

    public ResPackage getResPackage() {
        return resPackage;
    }

    public void setResPackage(ResPackage resPackage) {
        this.resPackage = resPackage;
    }

    public ResDishCategory getResDishCategory() {
        return resDishCategory;
    }

    public void setResDishCategory(ResDishCategory resDishCategory) {
        this.resDishCategory = resDishCategory;
    }

    public ResDish getResDish() {
        return resDish;
    }

    public void setResDish(ResDish resDish) {
        this.resDish = resDish;
    }

    public void setTreeId(Long treeId)
    {
        this.treeId = treeId;
    }

    public Long getTreeId() 
    {
        return treeId;
    }

    public void setRelationId(Long relationId) 
    {
        this.relationId = relationId;
    }

    public Long getRelationId() 
    {
        return relationId;
    }

    public void setTreeName(String treeName) 
    {
        this.treeName = treeName;
    }

    public String getTreeName() 
    {
        return treeName;
    }

    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }

    public void setField(String field) 
    {
        this.field = field;
    }

    public String getField() 
    {
        return field;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("treeId", getTreeId())
            .append("relationId", getRelationId())
            .append("treeName", getTreeName())
            .append("pId", getpId())
            .append("field", getField())
            .append("resPackage", getResPackage())
            .append("resDishCategory", getResDishCategory())
            .append("resDish", getResDish())
            .toString();
    }
}
